GtkEntryCompletion: call cell_area()->clear()
authorLars Uebernickel <lars@uebernic.de>
Sun, 3 Nov 2013 13:05:44 +0000 (14:05 +0100)
committerLars Uebernickel <lars@uebernic.de>
Sun, 3 Nov 2013 13:05:44 +0000 (14:05 +0100)
Call gtk_cell_layout_clear() on the area instead of the completion in
gtk_entry_completion_clear_text_column_renderer(), because it is also
called from within gtk_entry_completion_clear().

gtk/gtkentrycompletion.c

index 61a3249aecb7d38db8950e8328dc4b0b63b1d710..37763f7649bef319ebda25af3cb613c2d01d671c 100644 (file)
@@ -831,7 +831,11 @@ gtk_entry_completion_clear_text_column_renderer (GtkEntryCompletion *completion)
 {
   if (completion->priv->text_column != -1)
     {
-      gtk_cell_layout_clear (GTK_CELL_LAYOUT (completion));
+      GtkCellArea *area;
+
+      area = gtk_entry_completion_get_area (GTK_CELL_LAYOUT (completion));
+      gtk_cell_layout_clear (area);
+
       completion->priv->text_column = -1;
       g_object_notify (G_OBJECT (completion), "text_column");
     }